Optimal. Leaf size=181 \[ -\frac{(x+21) \left (3 x^2+5 x+2\right )^{7/2}}{12 (2 x+3)^2}+\frac{7 (121 x+584) \left (3 x^2+5 x+2\right )^{5/2}}{240 (2 x+3)}+\frac{7 (805-17394 x) \left (3 x^2+5 x+2\right )^{3/2}}{4608}+\frac{7 (167495-349806 x) \sqrt{3 x^2+5 x+2}}{36864}-\frac{12443893 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{73728 \sqrt{3}}+\frac{44625 \sqrt{5} \tanh ^{-1}\left (\frac{8 x+7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right )}{1024} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.128258, antiderivative size = 181, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {812, 814, 843, 621, 206, 724} \[ -\frac{(x+21) \left (3 x^2+5 x+2\right )^{7/2}}{12 (2 x+3)^2}+\frac{7 (121 x+584) \left (3 x^2+5 x+2\right )^{5/2}}{240 (2 x+3)}+\frac{7 (805-17394 x) \left (3 x^2+5 x+2\right )^{3/2}}{4608}+\frac{7 (167495-349806 x) \sqrt{3 x^2+5 x+2}}{36864}-\frac{12443893 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{73728 \sqrt{3}}+\frac{44625 \sqrt{5} \tanh ^{-1}\left (\frac{8 x+7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right )}{1024} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 812
Rule 814
Rule 843
Rule 621
Rule 206
Rule 724
Rubi steps
\begin{align*} \int \frac{(5-x) \left (2+5 x+3 x^2\right )^{7/2}}{(3+2 x)^3} \, dx &=-\frac{(21+x) \left (2+5 x+3 x^2\right )^{7/2}}{12 (3+2 x)^2}-\frac{7}{96} \int \frac{(-404-484 x) \left (2+5 x+3 x^2\right )^{5/2}}{(3+2 x)^2} \, dx\\ &=\frac{7 (584+121 x) \left (2+5 x+3 x^2\right )^{5/2}}{240 (3+2 x)}-\frac{(21+x) \left (2+5 x+3 x^2\right )^{7/2}}{12 (3+2 x)^2}+\frac{7}{768} \int \frac{(-19488-23192 x) \left (2+5 x+3 x^2\right )^{3/2}}{3+2 x} \, dx\\ &=\frac{7 (805-17394 x) \left (2+5 x+3 x^2\right )^{3/2}}{4608}+\frac{7 (584+121 x) \left (2+5 x+3 x^2\right )^{5/2}}{240 (3+2 x)}-\frac{(21+x) \left (2+5 x+3 x^2\right )^{7/2}}{12 (3+2 x)^2}-\frac{7 \int \frac{(2361672+2798448 x) \sqrt{2+5 x+3 x^2}}{3+2 x} \, dx}{73728}\\ &=\frac{7 (167495-349806 x) \sqrt{2+5 x+3 x^2}}{36864}+\frac{7 (805-17394 x) \left (2+5 x+3 x^2\right )^{3/2}}{4608}+\frac{7 (584+121 x) \left (2+5 x+3 x^2\right )^{5/2}}{240 (3+2 x)}-\frac{(21+x) \left (2+5 x+3 x^2\right )^{7/2}}{12 (3+2 x)^2}+\frac{7 \int \frac{-145828656-170659104 x}{(3+2 x) \sqrt{2+5 x+3 x^2}} \, dx}{3538944}\\ &=\frac{7 (167495-349806 x) \sqrt{2+5 x+3 x^2}}{36864}+\frac{7 (805-17394 x) \left (2+5 x+3 x^2\right )^{3/2}}{4608}+\frac{7 (584+121 x) \left (2+5 x+3 x^2\right )^{5/2}}{240 (3+2 x)}-\frac{(21+x) \left (2+5 x+3 x^2\right )^{7/2}}{12 (3+2 x)^2}-\frac{12443893 \int \frac{1}{\sqrt{2+5 x+3 x^2}} \, dx}{73728}+\frac{223125 \int \frac{1}{(3+2 x) \sqrt{2+5 x+3 x^2}} \, dx}{1024}\\ &=\frac{7 (167495-349806 x) \sqrt{2+5 x+3 x^2}}{36864}+\frac{7 (805-17394 x) \left (2+5 x+3 x^2\right )^{3/2}}{4608}+\frac{7 (584+121 x) \left (2+5 x+3 x^2\right )^{5/2}}{240 (3+2 x)}-\frac{(21+x) \left (2+5 x+3 x^2\right )^{7/2}}{12 (3+2 x)^2}-\frac{12443893 \operatorname{Subst}\left (\int \frac{1}{12-x^2} \, dx,x,\frac{5+6 x}{\sqrt{2+5 x+3 x^2}}\right )}{36864}-\frac{223125}{512} \operatorname{Subst}\left (\int \frac{1}{20-x^2} \, dx,x,\frac{-7-8 x}{\sqrt{2+5 x+3 x^2}}\right )\\ &=\frac{7 (167495-349806 x) \sqrt{2+5 x+3 x^2}}{36864}+\frac{7 (805-17394 x) \left (2+5 x+3 x^2\right )^{3/2}}{4608}+\frac{7 (584+121 x) \left (2+5 x+3 x^2\right )^{5/2}}{240 (3+2 x)}-\frac{(21+x) \left (2+5 x+3 x^2\right )^{7/2}}{12 (3+2 x)^2}-\frac{12443893 \tanh ^{-1}\left (\frac{5+6 x}{2 \sqrt{3} \sqrt{2+5 x+3 x^2}}\right )}{73728 \sqrt{3}}+\frac{44625 \sqrt{5} \tanh ^{-1}\left (\frac{7+8 x}{2 \sqrt{5} \sqrt{2+5 x+3 x^2}}\right )}{1024}\\ \end{align*}
Mathematica [A] time = 0.114115, size = 130, normalized size = 0.72 \[ \frac{-\frac{6 \sqrt{3 x^2+5 x+2} \left (414720 x^7-926208 x^6-6830784 x^5-15112992 x^4-12848072 x^3-19284852 x^2-89867034 x-91912653\right )}{(2 x+3)^2}-48195000 \sqrt{5} \tanh ^{-1}\left (\frac{-8 x-7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right )-62219465 \sqrt{3} \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{9 x^2+15 x+6}}\right )}{1105920} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.012, size = 253, normalized size = 1.4 \begin{align*} -{\frac{13}{40} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{9}{2}}} \left ( x+{\frac{3}{2}} \right ) ^{-2}}+{\frac{27}{10} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{9}{2}}} \left ( x+{\frac{3}{2}} \right ) ^{-1}}+{\frac{51}{8} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{7}{2}}}}-{\frac{5635+6762\,x}{480} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{5}{2}}}}-{\frac{101465+121758\,x}{4608} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{3}{2}}}}-{\frac{2040535+2448642\,x}{36864}\sqrt{3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}}}}-{\frac{12443893\,\sqrt{3}}{221184}\ln \left ({\frac{\sqrt{3}}{3} \left ({\frac{5}{2}}+3\,x \right ) }+\sqrt{3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}}} \right ) }+{\frac{357}{32} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{5}{2}}}}+{\frac{2975}{128} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{3}{2}}}}+{\frac{44625}{1024}\sqrt{12\, \left ( x+3/2 \right ) ^{2}-16\,x-19}}-{\frac{44625\,\sqrt{5}}{1024}{\it Artanh} \left ({\frac{2\,\sqrt{5}}{5} \left ( -{\frac{7}{2}}-4\,x \right ){\frac{1}{\sqrt{12\, \left ( x+3/2 \right ) ^{2}-16\,x-19}}}} \right ) }-{\frac{135+162\,x}{20} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{7}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 2.16644, size = 294, normalized size = 1.62 \begin{align*} \frac{39}{40} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{7}{2}} - \frac{13 \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{9}{2}}}{10 \,{\left (4 \, x^{2} + 12 \, x + 9\right )}} - \frac{1127}{80} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{5}{2}} x - \frac{7}{12} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{5}{2}} + \frac{27 \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{7}{2}}}{4 \,{\left (2 \, x + 3\right )}} - \frac{20293}{768} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} x + \frac{5635}{4608} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} - \frac{408107}{6144} \, \sqrt{3 \, x^{2} + 5 \, x + 2} x - \frac{12443893}{221184} \, \sqrt{3} \log \left (\sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2} + 3 \, x + \frac{5}{2}\right ) - \frac{44625}{1024} \, \sqrt{5} \log \left (\frac{\sqrt{5} \sqrt{3 \, x^{2} + 5 \, x + 2}}{{\left | 2 \, x + 3 \right |}} + \frac{5}{2 \,{\left | 2 \, x + 3 \right |}} - 2\right ) + \frac{1172465}{36864} \, \sqrt{3 \, x^{2} + 5 \, x + 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.63705, size = 544, normalized size = 3.01 \begin{align*} \frac{62219465 \, \sqrt{3}{\left (4 \, x^{2} + 12 \, x + 9\right )} \log \left (-4 \, \sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (6 \, x + 5\right )} + 72 \, x^{2} + 120 \, x + 49\right ) + 48195000 \, \sqrt{5}{\left (4 \, x^{2} + 12 \, x + 9\right )} \log \left (\frac{4 \, \sqrt{5} \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (8 \, x + 7\right )} + 124 \, x^{2} + 212 \, x + 89}{4 \, x^{2} + 12 \, x + 9}\right ) - 12 \,{\left (414720 \, x^{7} - 926208 \, x^{6} - 6830784 \, x^{5} - 15112992 \, x^{4} - 12848072 \, x^{3} - 19284852 \, x^{2} - 89867034 \, x - 91912653\right )} \sqrt{3 \, x^{2} + 5 \, x + 2}}{2211840 \,{\left (4 \, x^{2} + 12 \, x + 9\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.35276, size = 377, normalized size = 2.08 \begin{align*} -\frac{1}{184320} \,{\left (2 \,{\left (12 \,{\left (18 \,{\left (8 \,{\left (30 \, x - 157\right )} x - 725\right )} x - 67409\right )} x + 1173065\right )} x - 8219517\right )} \sqrt{3 \, x^{2} + 5 \, x + 2} + \frac{44625}{1024} \, \sqrt{5} \log \left (\frac{{\left | -4 \, \sqrt{3} x - 2 \, \sqrt{5} - 6 \, \sqrt{3} + 4 \, \sqrt{3 \, x^{2} + 5 \, x + 2} \right |}}{{\left | -4 \, \sqrt{3} x + 2 \, \sqrt{5} - 6 \, \sqrt{3} + 4 \, \sqrt{3 \, x^{2} + 5 \, x + 2} \right |}}\right ) + \frac{12443893}{221184} \, \sqrt{3} \log \left ({\left | -2 \, \sqrt{3}{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )} - 5 \right |}\right ) + \frac{25 \,{\left (5878 \,{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )}^{3} + 22241 \, \sqrt{3}{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )}^{2} + 75807 \, \sqrt{3} x + 27061 \, \sqrt{3} - 75807 \, \sqrt{3 \, x^{2} + 5 \, x + 2}\right )}}{512 \,{\left (2 \,{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )}^{2} + 6 \, \sqrt{3}{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )} + 11\right )}^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]